def checkSns(s):
    if len(s)!=11:
        return "SSN错误"
    if s[3]!='-' or s[6]!='-':
        return "SSN错误"
    for c in s:
        if ('0' <= c and c < '9') or c=='-':
            continue
        else:
            return "SSN错误"
    return "SSN正确"

def main():
    s = input("请输入SNS:")
    print(checkSns(s))
main()